<?php
/**
 * Created by PhpStorm.
 * Muser: lvchy
 * Date: 2018/9/26
 * Time: 16:49
 */

namespace app\common\model;
use think\Model;


class SysConfig extends Model
{
// 设置完整的数据表（包含前缀）
    protected $table = 'sys_config';
    public function getValAttr($val)
    {
        return $val?json_decode($val,true):[];
    }
}